package org.tourism.service;

import org.tourism.VO.ComplaintHandlingVO;
import org.tourism.entity.ComplaintHandling;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

public interface ComplaintHandlingService extends IService<ComplaintHandling> {

    //返回值为int类型的函数，返回1时代表插入成功，0代表失败
    int addComplaintHandling(ComplaintHandlingVO complaintHandlingVO);

    int updateComplaintHandling(ComplaintHandling complaintHandling);

    int deleteComplaintHandlingByComplaintId(Integer complaintId);

    //返回所有ComplaintHanding
    List<ComplaintHandling> getAllComplaintHandling();

    //通过ID返回1个
    ComplaintHandling getComplaintHandlingById(Integer complaintHandlingId);

}
